/**
 * 
 */
package com.easidea.tim.entity.base;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springside.core.dao.extend.Undeletable;

import com.easidea.tim.entity.BaseEntity;
import com.easidea.tim.util.TimConstant.FlowNoType;

/**
 * 系统流水单据编号
 * @author Harrison
 */

@Entity(name = "tim_flow_no")
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Undeletable(status = "deleted")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "tim_flow_no")
public class FlowNo extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5633032159476365145L;

	

	    private FlowNoType type;
	    private long nextValue;
	    private String key;
	    private String description;

	    @Column(name = "type")
	    public FlowNoType getType() {
	        return type;
	    }

	    public void setType(FlowNoType type) {
	        this.type = type;
	    }

	    @Column(name = "next_value")
	    public long getNextValue() {
	        return nextValue;
	    }

	    public void setNextValue(long nextValue) {
	        this.nextValue = nextValue;
	    }

	    @Column(name = "description")
	    public String getDescription() {
	        return description;
	    }

	    public void setDescription(String description) {
	        this.description = description;
	    }

	    @Column(name = "flow_key")
	    public String getKey() {
	        return key;
	    }

	    public void setKey(String key) {
	        this.key = key;
	    }
}
